<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:30:"../template/.\index\index.html";i:1534430325;s:27:"../template/index/base.html";i:1534430472;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title><?php echo $info['webname']; ?></title>
	<meta name="keywords" content="<?php echo $info['keyword']; ?>" />
	<meta name="description" content="<?php echo $info['description']; ?>" />
	<link rel="stylesheet" href="/blog/public/static/index/layui/css/layui.css">
	<link rel="stylesheet" href="/blog/public/static/index/layui/css/global.css">
	<link rel="stylesheet" href="/blog/public/static/index/layui/css/index.css">
</head>
<script>
	window.onload = function ()
	{
		var oH2 = document.getElementById("mnavh"); 
		var oUl = document.getElementById("starlist");  
		oH2.onclick = function ()
		{
			var style = oUl.style;
			style.display = style.display == "block" ? "none" : "block";
			oH2.className = style.display == "block" ? "open" : ""
		}
	}
</script>
<body>
	<header>
		<div id="mnav">
			<div class="logo"><a href="/"><?php echo $info['webname']; ?></a></div>
			<h2 id="mnavh"><span class="navicon"></span></h2>
			<ul id="starlist">
			<?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?>
				<li class="layui-icon"><a href="<?php echo URL($nav['url']); ?>"><?php echo $nav['navname']; ?></a></li>
			<?php endforeach; endif; else: echo "" ;endif; if(is_array($navi) || $navi instanceof \think\Collection || $navi instanceof \think\Paginator): $i = 0; $__LIST__ = $navi;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$navi): $mod = ($i % 2 );++$i;?>
				<li class="layui-icon"><a href="<?php echo URL('/article/'.$navi['id']); ?>"><?php echo $navi['title']; ?></a></li>
			<?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</header>
	<div class="notice">
		<div class="twitter"><div class=" icol"><i class="layui-icon" style="font-size: 1.2em">&#xe645;</i></div><?php echo mb_substr(strip_tags($twitter['content']),0,18,'utf-8'); ?>...</div>
	</div>
	<div class="layui-container">
	<div class="layui-row layui-col-space15">
		<!-- 内容主体区域 -->
			
<div class="layui-col-md8">
<?php if(is_array($newartice) || $newartice instanceof \think\Collection || $newartice instanceof \think\Paginator): $i = 0; $__LIST__ = $newartice;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$artice): $mod = ($i % 2 );++$i;?>
	<div class="layui-card">
		<div class="layui-card-header artitle">
			<a href="<?php echo URL('/article/'.$artice['id']); ?>"><?php echo $artice['title']; ?></a>
		</div>
		<div class="layui-card-body">
			<div class="acimg">
				<a href="<?php echo URL('/article/'.$artice['id']); ?>"><img src="<?php echo $artice['img']; ?>"></a>
			</div>
			<div class="bloginfo">
				<?php echo $artice['abstract']; ?>...
			</div>
			<div class="autor">
				<li><i class="layui-icon wico">&#xe66e;</i><a href="<?php echo URL('/category/'.$artice['cid']); ?>"><?php echo $artice['class']; ?></a></li>
				<li><i class="layui-icon wico">&#xe637;</i><?php echo date('Y-m-d',$artice['time']); ?></li>
				<li class="dis"><i class="layui-icon wico2">&#xe674;</i>浏览(<?php echo $artice['click']; ?>)</li>
				<li><i class="layui-icon wico3">&#xe6c6;</i>赞(<?php echo $artice['zan']; ?>)</li>
				<div class="readyum"><a href="article/<?php echo $artice['id']; ?>">阅读原文>></a></div>
			</div>
		</div>
	</div>
<?php endforeach; endif; else: echo "" ;endif; ?>
<?php echo $page; ?>
</div>							

			<div class="layui-col-md4">
				<div class="fly-panel txtcen">
					<h3 class="fly-panel-title meinfo">关于我</h3>
					<div class="blog-face"><img src="/blog/public/static/index/images/face.png"></div>
					<div class="userinfo">
						<li>网名:<?php echo $user['nickname']; ?></li>
						<li>签名:<?php echo $user['autograph']; ?></li>
						<li>邮箱:<?php echo $user['email']; ?></li>
					</div>
				</div>


				<div class="fly-panel fly-signin">
					<div class="fly-panel-main fly-signin-main">
						<form action="<?php echo URL('/search'); ?>" method="post">
							<?php echo token(); ?>
							<input type="text" name="key" required lay-verify="required" placeholder="发现更多" class="layui-input search-txt"><button class="layui-btn search-but">搜索</button>
						</form>
					</div>
				</div>

				<div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
					<h3 class="fly-panel-title toparticle"><i class="layui-icon ico">&#xe609;</i>推荐文章</h3>
					<div class="tuijian">
						<ul>
							<?php if(is_array($topartice) || $topartice instanceof \think\Collection || $topartice instanceof \think\Paginator): $i = 0; $__LIST__ = $topartice;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$topartice): $mod = ($i % 2 );++$i;?>
							<li><a href="<?php echo URL('/article/'.$topartice['id']); ?>"><?php echo $topartice['title']; ?></a></li>
							<?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
					</div>
				</div>
				<div class="fly-panel fly-link">
					<h3 class="fly-panel-title toparticle"><i class="layui-icon ico">&#xe600;</i>文章分类</h3>
					<dl class="fly-panel-main">
						<?php if(is_array($category) || $category instanceof \think\Collection || $category instanceof \think\Paginator): $i = 0; $__LIST__ = $category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$category): $mod = ($i % 2 );++$i;?>
						<dd><a href="<?php echo URL('/category/'.$category['id']); ?>"><?php echo $category['name']; ?></a><dd>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</dl>
				</div>

				<div class="fly-panel">
					<div class="fly-panel-title toparticle">
						<i class="layui-icon ico">&#xe735;</i>支持我们
					</div>
					<div class="fly-panel-main">
						<a href="" target="_blank" class="fly-zanzhu" style="background-color: #5FB878;">可以放广告</a>
					</div>
				</div>

				<div class="fly-panel fly-link">
					<h3 class="fly-panel-title toparticle"><i class="layui-icon ico">&#xe64d;</i>友情链接</h3>
					<dl class="fly-panel-main">
						<?php if(is_array($link) || $link instanceof \think\Collection || $link instanceof \think\Paginator): $i = 0; $__LIST__ = $link;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): $mod = ($i % 2 );++$i;?>
						<dd><a href="<?php echo $link['url']; ?>" target="_blank"><?php echo $link['name']; ?></a><dd>
						<?php endforeach; endif; else: echo "" ;endif; ?>
						<dd><a href="<?php echo URL('/links'); ?>" class="fly-link">申请友链</a><dd>
					</dl>
				</div>
</div>
	</div>
	<div class="fly-footer">
		<p><a href="http://warss.cn/" target="_blank">Xiele-淡墨</a> 2018 &copy;<?php echo $info['kor']; ?>
		<p><a href="javascript:;" onclick="good()">捐助赞赏</a><?php echo $info['bottom']; ?>
	</div>
<script src="/blog/public/static/index/layui/layui.js"></script>


<script>
layui.use(['layer', 'form', 'element'], function(){
	var layer = layui.layer
	,form = layui.form;
});
layui.use('util', function(){
	var util = layui.util;

  //执行
  util.fixbar({
  	bgcolor:'#333',
  	bar1: true
  	,click: function(type){
  		if(type === 'bar1'){
  			layer.msg('分享美好时光')
  		}
  	}
  });
});
function good(){
	layer.open({
		title:'赞赏',
		type: 1,
  	area: ['300px', '443px'], //宽高
  	content: '<img src="/blog/public/static/index/images/good.png">'
  });
}
</script> 
</body>
</html>
